<?php

namespace common\models\shop;

use Yii;
use yii\db\ActiveRecord;

/**
 * Desc 设备幸型号
 */
class DeviceModel extends ActiveRecord {

    //打印设备
    const TYPE_PRINT = 1;
    //扫码设备
    const TYPE_SCAN = 2;
    //广播设备
    const TYPE_BRC = 3;
    //刷脸设备
    const TYPE_FACE = 4;
    
    //状态-启用
    const STATUS_ENABLE = 1;
    //状态-禁用
    const STATUS_DISABLE = 2;

    public static $type = [
        self::TYPE_PRINT => '打印设备',
        self::TYPE_SCAN => '扫码设备',
        self::TYPE_BRC => '广播设备',
        self::TYPE_FACE => '刷脸设备',
    ];
    public static $status = [
        self::STATUS_ENABLE => '启用',
        self::STATUS_DISABLE => '禁用',
    ];

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%pay_device_model}}';
    }
    

}
